package com.rongji.cms.tools.common.enums;

import lombok.Getter;

/**
 * 这里定义基本的错误码
 * 业务模块定义自己业务的错误码
 */

@Getter
public enum CommonResultCode implements StatusCode {
    SUCCESS(200,"成功"),
    FAIL(400,"失败"),
    UNAUTHORIZED(401,"未认证（签名错误）"),
    NOT_FOUND(404,"接口不存在"),
    BUSY(909,"操作太频繁"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误");


    private int code;
    private String msg;

    CommonResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
